How to iterate through two nested lists (28 and 3 elements) and check if subset based on the length